package cn.iocoder.yudao.module.book.controller.admin.inventory.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 库存新增/修改 Request VO")
@Data
public class InventorySaveReqVO {

    @Schema(description = "库存ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3088")
    private Long id;

    @Schema(description = "图书ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30602")
    @NotNull(message = "图书ID不能为空")
    private Long bookId;

    @Schema(description = "总册数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "总册数不能为空")
    private Integer totalCopies;

    @Schema(description = "可借册数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "可借册数不能为空")
    private Integer availableCopies;

    @Schema(description = "预警阈值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "预警阈值不能为空")
    private Integer threshold;

}